using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace eCloudEdit
{
    public partial class PageForm : Form
    {
        public PageForm()
        {
            InitializeComponent();
        }
        public string  PageName
        {
            get
            {
                return this.textBox1.Text;
            }
        }
        public Color PageColor
        {
            get
            {
                return label3.BackColor;
            }
        }
        private void button3_Click(object sender, EventArgs e)
        {
            ColorDialog dlg = new ColorDialog();
            dlg.Color = label3.BackColor;

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                label3.BackColor = dlg.Color;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }
    }
}